﻿using System;
using ORS.OrderRobot.ServiceContracts.Dtos;

namespace ORS.OrderRobot.ServiceContracts
{
    /// <summary>
    /// 代理池
    /// </summary>
	public interface IProxyPool
	{
        /// <summary>
        /// 获取
        /// </summary>
        /// <returns></returns>
        ProxyInfo? GetNextProxy();
        void AddProxy(ProxyInfo proxy);
        void RemoveProxy(ProxyInfo proxy);
    
        void Clear();
        int Count { get; }
    }
}

